package oc.tm.sg.demo.provider.impl;

import java.util.ArrayList;
import java.util.List;

import com.alibaba.fastjson.JSON;

import oc.tm.sg.core.rpc.annotation.Msg;
import oc.tm.sg.core.rpc.annotation.SPI;
import oc.tm.sg.demo.api.DemoAPI;
import oc.tm.sg.demo.api.po.User;

@SPI(group="test",owner="liry",organization="tm",version="1.0.0")
@Msg(value="Demo测试接口",msg="Demo测试接口备注信息")
public class DemoAPIImpl implements DemoAPI {

	public List<User> getUsers(User user) {
		List<User> users=new ArrayList<User>();
		users.add(user);
		System.out.println("req:"+JSON.toJSON(user));
		System.out.println("resp:"+JSON.toJSON(users));
		return users;
	}

	public User test(String str) {
		return new User(10001l, "zhangsan", 122);
	}

}
